body,html{
    background-color: #f6f6f8;
    a{
        text-decoration: none;
    }
    ul>li{
        list-style: none;
    }
}

@color: #016bd5;
@keyframes rolate{
    0%{
        transform: rotate(0deg);
    }
    25%{
        transform: rotate(10deg) translateY(2px);
    }
    50%{
        transform: rotate(0deg) translateY(3px);
    }
    75%{
        transform: rotate(-10deg) translateY(5px);
    }
    100%{
        transform: rotate(0deg) translateY(0px);
    }
}

#page{
    max-width: 768px;
    height: 100%;
    margin: 0 auto;
    header{
        width: 100%;
        height: 180px;
        background: url(../images/header_bg.jpg);      
        .mask{
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, .08);
            display: flex;
            justify-content: space-around;
            padding: 20px 10px;
            .search{
                width: 80%;
                height: 30px;
                background-color: #fff;
                border-radius: 20px;
                padding: 0 10px;
                line-height: 30px;
                font-size: 12px;
                display: flex;
                .search_icon{
                    svg{
                        color: @color;
                    }
                }
                input{
                    outline: none;
                    height: 100%;
                    border: none;
                    margin-left: 15px;
                }
            }
            .login{
                // width: 10%;
                font-size: 12px;
                color: white;
                cursor: pointer;
                .account{
                    svg{
                        width: 16px;
                        height: 16px;
                        margin-left: 4px;
                    }
                }
            }
        }      
    }
    nav{
        width: 90%;
        height: 50px;
        background-color: #fff;
        margin: -20px auto;
        border-radius: 10px;
        ul{
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-around;
            padding: 8px 0 0 0;
            font-size: 12px;
            a{
                color: #757575;
                // text-decoration: none;
            }
            svg{
                display: block;
                margin: 0 auto 3px;
                width: 18px;
                height: 18px;
            }
        }
    }
    .navigation{
        width: 90%;
        margin: 40px auto 0;
        overflow: hidden;
        ul{
            width: 100%;
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            padding: 0;
            box-sizing: border-box;
            background: -webkit-linear-gradient(left bottom,#fa6d53,#4c97ed,#82c4f9,#42c796);
            li{
                width: 25%;
                min-height: 50px;
                // background-color: @color;
                border: 1px solid #f6f6f8;
                a{
                    display: block;
                    color: white;
                    padding: 10px 0 0 10px;
                    font-size: 12px;
                }
                &:nth-child(1){ 
                    background:url(../icons/shatan.png) no-repeat 40px 8px;
                }
                &:nth-child(6){ 
                    background:url(../icons/youlun.png) no-repeat 40px 8px;
                }
                &:nth-child(5){ 
                    background:url(../icons/yundon.png) no-repeat 40px 8px;
                    width: 50%;
                }
                &:nth-child(6){
                    width: 50%;
                }
            }
        }
    }
    .preferential{
        width: 90%;
        margin: 10px auto 50px;
        .title{
            font-size: 14px;
            font-weight: bold;
        }
        .classify{
            display: flex;
            margin-top: 8px;
            .classify-item{
                font-size: 12px;
                padding: 6px 10px;
                color: #666666;
                background-color: #fff;
                margin-right: 10px;
                border-radius: 8px;
                border: 1px solid #ececec;
            }
            .active{
                color: #fff;
                background-color: #17c0c8; 
            }
        }
        .address{
            margin-top: 10px;
            .loading{
                width: 100%;
                img{
                    display: block;
                    margin: 10px auto;
                    width: 10%;
                    animation: rolate 1s linear infinite;
                }
                .load_t{
                    text-align: center;
                    color: #ccc;
                    font-size: 12px;
                }
            }
            ul{
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                padding: 0;
                li{
                    width: 48%;
                    background-color: #fff;
                    margin-top: 8px;
                    // padding-bottom: 10px;
                    box-sizing: border-box;
                    border-radius: 10px;
                    overflow: hidden;
                    position: relative;
                    a{
                        color: #000;
                        text-decoration: none;
                    }
                    .img{
                        position: relative; 
                        .flag{
                            position: absolute;
                            top: 0;
                            left: 0px;
                            padding: 3px 8px;
                            color: white;
                            background-color: #c8431a;
                            font-size: 12px;
                            border-bottom-right-radius: 10px;
                        }
                        img{
                            display: block;
                            width: 100%;
                            border-radius: 10px;
                        }
                        .desc{
                            width: 100%;
                            position: absolute;
                            bottom: 0;
                            padding: 5px 10px;
                            background-color: rgba(0, 0, 0, .5);
                            color: #fff;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            white-space: nowrap;
                        }
                    }
                   
                    .title{
                        margin: 5px 0;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        text-overflow: -o-ellipsis-lastline;
                        display: -webkit-box;
                        line-clamp: 2;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                    }
                    .price{
                        color: #ff7400;
                        padding-bottom: 30px;
                    }
                    .data{
                        margin-top: 5px;
                        width: 100%;
                        height: 28px;
                        line-height: 28px;
                        background-color: #e8e8e8;
                        font-size: 12px;
                        color: #81666f;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                        padding-left: 20px;
                        position: absolute;
                        bottom: 0;
                    }
                }
            }  
            .more{
                text-align: center;
                font-size: 12px;
                margin-top: 30px;
                display: none;
                border: 1px solid @color;
                padding: 8px 0;
                border-radius: 10px;
                a{
                    color: @color;
                }
            }    
        }
        .today{
            margin-top: 10px;
            ul{
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                padding: 0;
                li{
                    width: 48%;
                    background-color: #fff;
                    margin-top: 8px;
                    // padding-bottom: 10px;
                    box-sizing: border-box;
                    border-radius: 10px;
                    overflow: hidden;
                    position: relative;
                    a{
                        color: #000;
                        text-decoration: none;
                    }
                    .img{
                        position: relative; 
                        .flag{
                            position: absolute;
                            top: 0;
                            left: 0px;
                            padding: 3px 8px;
                            color: white;
                            background-color: #c8431a;
                            font-size: 12px;
                            border-bottom-right-radius: 10px;
                        }
                        img{
                            display: block;
                            width: 100%;
                            border-radius: 10px;
                        }
                        .desc{
                            width: 100%;
                            position: absolute;
                            bottom: 0;
                            padding: 5px 10px;
                            background-color: rgba(0, 0, 0, .5);
                            color: #fff;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            white-space: nowrap;
                        }
                    }
                   
                    .title{
                        margin: 5px 0;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        text-overflow: -o-ellipsis-lastline;
                        display: -webkit-box;
                        line-clamp: 2;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                    }
                    .price{
                        color: #ff7400;
                        padding-bottom: 30px;
                    }
                    .data{
                        margin-top: 5px;
                        width: 100%;
                        height: 28px;
                        line-height: 28px;
                        background-color: #e8e8e8;
                        font-size: 12px;
                        color: #81666f;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                        padding-left: 20px;
                        position: absolute;
                        bottom: 0;
                    }
                }
            }  
            .more{
                text-align: center;
                font-size: 12px;
                margin-top: 30px;
                a{
                    color: @color;
                }
            }
        }
    }
    .phone_box{
        max-width: 768px;
        margin: 0 auto;
        .phone{
            width: 45px;
            height: 45px;
            background-color: #fa6d53;
            position: fixed;
            right: 20px;
            bottom: 50px;
            padding: 0;
            border-radius: 50%;
            a{
                width: 100%;
                height: 100%;
                img{
                    width: 30px;
                    display: block;
                    margin: 0 auto;
                }
                text-align: center;
                font-size: 12px;
                color: #fff;
            }
           
        }
    }
}
#container{
    width: 375px;
    height: 600px;
}
